<extend name="Public:base" />

<block name="content">

    <form action="{:U('MasterOrder/index')}" method="post">
        <div class="table-responsive">
        <table class="table table-striped table-bordered table-hover search-form" id="nav-table">
            <thead>
            <tr>
                <th>
                时间：  <input id="time1" name="time1" value="{:I('time1')}" class="Wdate" type="text" onfocus="WdatePicker({dateFmt:'yyyy-M-d 00:00:00'})"/>
                -- <input id="time2" name="time2" value="{:I('time2')}" class="Wdate" type="text" onfocus="WdatePicker({dateFmt:'yyyy-M-d 00:00:00'})"/>
                <input class="marginL10" name="order_id" type="text" value="{:I('order_id')}"  placeholder="输入查找订单号" value="{:I('order_id')}" />
                <input class="marginL10" name="master_id" type="text" value="{:I('master_id')}"  placeholder="师傅账号" value="{:I('phone')}" />
                <input class="marginL10" name="master_name" type="text" value="{:I('master_name')}"  placeholder="师傅姓名" value="{:I('phone')}" />
                <input class="btn btn-primary radius5 btn-sm" type="submit" value="查询"/>
                <a href="{:U('MasterOrder/excelout')}" class="btn btn-primary radius5 btn-sm">导出</a>
                <!--  <a class="btn btn-primary" href="javascript:;" id="search" url="{:U('Member/index')}">搜索</a>-->
                </th>
            </tr>
            </thead>
        </table>
        </div>
    </form>
    师傅收入总金额：{$total}元
    <div class="table-responsive">
        <table class="table table-striped table-bordered table-hover" id="mytable">

            <thead>
            <tr>
                <th rowspan="2">订单编号</th>
                <th rowspan="2">师傅信息</th>
                <th colspan="4">订单资金详情</th>
                <th rowspan="2">订单总金额(元)</th>
                <th rowspan="2">佣金(-)或奖励(+)</th>
                <th rowspan="2">师傅总收入</th>
                <th rowspan="2">维修金（元）</th>
                <th rowspan="2">保证金（元）</th>
                <th rowspan="2">支付时间</th>
            </tr>
            <tr>
                <th>故障金额</th>
                <th>优惠券</th>
                <th>诊断费</th>
                <th>小费</th>
            </tr>
            </thead>
            <tbody>
            <volist name="list" id="ba" key="k">
                <tr>
                    <td>{$ba['repair_order_num_alias']}</td>
                    <td>{$ba['id_name']}{$ba['worker_tel']}</td>
                    <td>{$ba['fault_money']}</td>
                    <td>{$ba['vtotal']}</td>
                    <td>{$ba['diagnosis_cost']}</td>
                    <td>{$ba['tip']}</td>
                    <td>{$ba['total']}</td>
                    <td>{$ba['money']}</td>
                    <td>{$ba['money']+$ba['total']}</td>
                    <td>{$ba['maintain']}</td>
                    <td>{$ba['bond']}</td>
                    <td>{$ba['pay_time']|date="Y-m-d H:i:s",###}</td>
                </tr>
            </volist>
            <tr>
                <td colspan="20" class="page">{$page}</td>
            </tr>
            </tbody>
        </table>
    </div>
</block>
<block name="css">
</block>
<block name="javascript">
    <script>

    </script>
</block>